home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / clipper / comm_io.zip / COMM.PRG < prev    next >
Text File  |  1987-11-16  |  2KB  |  42 lines

  1. *
  2. * 1- OUTP_CHAR {call} outputs a character string up to first null encountered.
  3. *    (Note- all clipper strings are terminated by a ascii null or hex 00)
  4. *    Example:
  5. *             PUTCHARS='a character string '
  6. *             CALL OUTP_CHAR WITH PUTCHARS
  7. *
  8. * 2- INP_CHAR(.T.or.F.) {function} returns a character string of the characters
  9. *    available in the input buffer (maximum of 512 characters)
  10. *    and gives the option of deleting characters read from input buffer .T. or
  11. *    .F. leaving it untouched which allows easy monitoring for a special
  12. *    character(s)
  13. *    Example:
  14. *             RECV_STR=INP_CHAR(.T.)  & reads buffer and kills characters read
  15. *                                       from buffer
  16. *
  17. * 3- INP_CNT() {function} returns numeric indicating the number of characters
  18. *    that the input buffer is holding (Maximum of 512).
  19. *    Example:
  20. *             NUMCHAR=INP_CNT()
  21. *
  22. * 4- SET_XOFF {CALL} enables or disables xoff control .
  23. *    Example:
  24. *             SOFF=.T. && if you want to turn xoff feature on
  25. *             SOFF=.F. && to turn it off
  26. *             CALL SET_XOFF WITH SOFF
  27. *
  28. * 5- GET_XOFF(),RECV_XOFF(),SENT_XOFF() {FUNCTION} return logical value
  29. *    indicating state of control flags
  30. *    Example:
  31. *             GFLAG=GET_XOFF()
  32. *
  33. * 6- INIT_COMM,UNINIT_COM,INP_FLUSH {CALL} dont pass or return parameters
  34. *    Example:
  35. *             CALL INIT_COMM
  36. *             CALL INP_FLUSH
  37. *---------------------------------------------------------------------------
  38.  
  39.    CALL INIT_COMM
  40.    PUTCHARS='ATDT8963970'
  41.    CALL OUTP_CHAR WITH PUTCHARS
  42.